package rs.daolao.syc.admin.account.dao.persist.repository.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import rs.dalao.syc.common.pojo.vo.PageData;
import rs.dalao.syc.common.util.PageInfoToPageDataConverter;
import rs.daolao.syc.admin.account.dao.persist.mapper.DoctorMapper;
import rs.daolao.syc.admin.account.dao.persist.mapper.UserMapper;
import rs.daolao.syc.admin.account.dao.persist.repository.IDocRepository;
import rs.daolao.syc.admin.account.dao.persist.repository.IUserRepository;
import rs.daolao.syc.admin.account.pojo.entity.Doctor;
import rs.daolao.syc.admin.account.pojo.entity.User;
import rs.daolao.syc.admin.account.pojo.vo.*;

import java.util.List;

/**
 * 处理用户数据的存储库实现类
 *
 * @author java@tedu.cn
 * @version 2.0
 */
@Slf4j
@Repository
public class DocRepositoryImpl implements IDocRepository {


    @Autowired
    private DoctorMapper doctorMapper;


    @Override
    public int deleteById(Long id) {
        log.debug("开始执行【根据ID删除用户】的数据访问，参数：{}", id);
        return doctorMapper.deleteById(id);
    }

    @Override
    public Object getStandardById(Long id) {
        log.debug("开始执行【根据ID查询用户详情】的数据访问，参数：{}", id);
        return doctorMapper.getStandardById(id);
    }
}
